package web.ssm.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import web.ssm.entity.Users;
import web.ssm.mapper.UsersMapper;
import web.ssm.service.UsersService;
@Service
public class UsersServiceImpl implements UsersService{
	@Autowired
	private UsersMapper usersMapper;
	
	public void add(Users users) {
		usersMapper.add(users);		
	}

	public List<Users> all() {
		
		return usersMapper.all();
	}

	public void delete(int id) {
		usersMapper.delete(id);
		
	}

	public Users inquiry(int id) {
		
		return usersMapper.inquiry(id);
	}

	public void update(Users users) {
	
		usersMapper.update(users);
	}
	
}
